using System;
using System.Xml.XPath;
using System.Collections.Generic;
using System.Text;

using AIFSDataAccessLayer.Utilities;
using AIFSCMSDataAccessLayer.ProxyModels;

using AIFSContentManagementSystem.Criteria;

namespace AIFSCMSDataAccessLayer.EntityMappers
{
    /// <summary>
    /// Helper class to Serialize Criteria to/from xml
    /// </summary>
    public sealed class CriteriaMapper : EntityMapper<CriterionProxy>
    {
        public CriteriaMapper()
        {            
        }

        protected override void Map(System.Data.DataRow drEntity, CriterionProxy dto)
        {
            dto.CriteriaId = DataTableUtil.ToIntType(drEntity, "CRITERIA_ID");            
        }
    }
}
